// 6. 用NodeJS实现一个端口为3000的服务器，并实现以下功能
const express = require('express')
const path = require('path')

const app = express()
const rootRouter = require('./router')
app.use('/api',rootRouter)

app.listen(3000,()=>{
    console.log('server is running at port 3000')
})